﻿<Window x:Class="Dispatcher.Views.LoginWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStartupLocation="CenterScreen" ResizeMode="NoResize"
        Title="Авторизация" Height="166" Width="285" KeyDown="Window_KeyDown">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>

        <TextBlock Margin="5" Grid.Row="0" Grid.Column="0" Text="Логин"/>
        <TextBlock Margin="5" Grid.Row="1" Grid.Column="0" Text="Пароль"/>

        <TextBox Name="Login" Grid.Column="1" Grid.Row="0" Margin="5" KeyDown="Login_KeyDown" />
        <PasswordBox Name="Password" Grid.Column="1" Grid.Row="1" Margin="5" KeyDown="Password_KeyDown" />

        <StackPanel Margin="5" Grid.Column="1" Grid.Row="8" Orientation="Horizontal">
            <Button Margin="10" Width="77" Click="LoginButton_Click">Ok</Button>
            <Button Margin="10" Width="77" Click="CancelButton_Click">Cancel</Button>
        </StackPanel>
    </Grid>
</Window>
